namespace BorgExt
{
    internal class CompositionHandlerInfo<TArgs> : HandlerInfo
    {
        private readonly CompositionEventHandler<TArgs> _handler;
        private readonly TArgs _args;

        public CompositionHandlerInfo(CompositionEventHandler<TArgs> handler, TArgs args)
        {
            _handler = handler;
            _args = args;
        }

        public override void Execute()
        {
            _handler(_args);
        }
    }
}

